@import '~antd/es/style/themes/default.less';
@import './assets/less/index.less';

html,
body,
#root-slave {
  height: 100%;
  background: white;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}

// .ant-pro-page-container-children-content {
//   margin: 0;
// }

// 循环生成代码
.createLoop(@n, @i: 1) when (@i =< @n) {
  @num: (@i * 2);
  .all-m-t-@{num} {
    margin-top: 1px * @num;
  }

  .all-m-l-@{num} {
    margin-left: 1px * @num;
  }

  .all-m-r-@{num} {
    margin-right: 1px * @num;
  }

  .all-m-b-@{num} {
    margin-bottom: 1px * @num;
  }

  .all-m-@{num} {
    margin: 1px * @num;
  }

  .all-p-@{num} {
    box-sizing: border-box;
    padding: 1px * @num;
  }

  .all-p-t-@{num} {
    box-sizing: border-box;
    padding-top: 1px * @num;
  }

  .all-p-l-@{num} {
    box-sizing: border-box;
    padding-left: 1px * @num;
  }

  .all-p-r-@{num} {
    box-sizing: border-box;
    padding-right: 1px * @num;
  }

  .all-p-b-@{num} {
    box-sizing: border-box;
    padding-bottom: 1px * @num;
  }

  .all-font-(@i) {
    font-size: 1px * @i;
  }

  .all-l-h-(@i) {
    line-height: 1px * @i;
  }
  .createLoop(@n, (@i + 1));
}
.createLoop(50);

.all_p_relative {
  position: relative;
}

.all_page {
  min-height: 100vh !important;
  padding: 20px;
  overflow: auto;
  background-color: white !important;
}

.all_page_bottom {
  position: relative !important;
  min-height: 100% !important;
  padding: 20px;
  padding-bottom: 70px;
  overflow: auto;
  background-color: white !important;
}

.all_bottom_box {
  // position: absolute;
  // bottom: 0;
  width: 100%;
  height: 70px;
  padding-right: 20px;
  line-height: 70px;
  text-align: right;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  button {
    min-width: 70px;
    height: 30;
  }
}

.all-f-item-170 {
  width: 170px !important;
}

.ant-modal-footer {
  display: flex;
  flex-direction: row-reverse;
  justify-content: end;
  width: 100%;
  margin-top: 0;
  button + button {
    margin-left: 0;
  }
  .ant-btn {
    // width: 70px;
    margin-left: 10px;
    &:last-child {
      margin-left: 0;
    }
  }
}
